package com.yc.cloud.api.service.impl;

import com.yc.cloud.api.service.WxCacheService;
import com.yc.cloud.common.cache.service.RedisService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxCacheServiceImpl implements WxCacheService {

    @Resource
    private RedisService<String> redisService;

    @Override
    public String getByKey(String key) {
        return redisService.get(key);
    }

    @Override
    public void setByKey(String key, String value) {
        redisService.set(key, value);
    }

    @Override
    public void setByKey(String key, String value, long expire) {
        redisService.set(key, value, expire);
    }

    @Override
    public boolean existByKey(String key) {
        return false;
    }

    @Override
    public List<String> listByKey(String key, long pageNum, long pageSize) {
        return null;
    }

    @Override
    public void delByKey(String key) {

    }

    @Override
    public List<String> listAllByKey(String key) {
        return null;
    }

    @Override
    public void lPushAllByCollectionByKey(String key, List<String> list) {

    }

    @Override
    public String get(Long id) {
        return null;
    }

    @Override
    public void set(Long id, String s) {

    }

    @Override
    public boolean exist(Long id) {
        return false;
    }

    @Override
    public List<String> list(long pageNum, long pageSize) {
        return null;
    }

    @Override
    public List<String> listAll() {
        return null;
    }

    @Override
    public void del(Long id) {

    }
}
